home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / e / misc.xsave / 000090_fdc@panix.com_Mon Mar 5 17:43:15 2007.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Path: reader2.panix.com!panix!not-for-mail
  2. From: Frank da Cruz <fdc@panix.com>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: Kermit insists on treating PDF files as text
  5. Date: Mon, 5 Mar 2007 22:43:05 +0000 (UTC)
  6. Organization: PANIX Public Access Internet and UNIX, NYC
  7. Lines: 32
  8. Message-ID: <slrneup77p.565.fdc@panix3.panix.com>
  9. References: <1173117905.196167.64710@p10g2000cwp.googlegroups.com>
  10. Reply-To: fdc@columbia.edu
  11. NNTP-Posting-Host: panix3.panix.com
  12. X-Trace: reader2.panix.com 1173134585 29653 166.84.1.3 (5 Mar 2007 22:43:05 GMT)
  13. X-Complaints-To: abuse@panix.com
  14. NNTP-Posting-Date: Mon, 5 Mar 2007 22:43:05 +0000 (UTC)
  15. User-Agent: slrn/0.9.8.0 (NetBSD)
  16. Xref: panix comp.protocols.kermit.misc:15662
  17.  
  18. On 2007-03-05, Ramon F Herrera <ramon@conexus.net> wrote:
  19. : Desktop side: Kermit 95 version 2.1.3 on WinXP
  20. : Server side: C-Kermit 8.0.209 on Linux
  21. : Using SSH sessions
  22. :
  23. : I type "bin" on both sides, but Kermit stubbornly transfers the PDF
  24. : file as text.
  25. :
  26. : The transfer from Linux to Windows is fine, the uploads are the ones
  27. : getting messed up.
  28. :
  29. See:
  30.  
  31.   http://www.columbia.edu/kermit/ckermit70.html#x4
  32.  
  33. As you can see, by default Kermit scans each file to see whether it is text
  34. or binary, and within this default, the default is to scan the first 48K.
  35. Very infrequently -- but mainly with PDF or certain PostScript files -- it
  36. can turn out that the first 48K are, indeed, text, and the "binary" part
  37. happens later, and the default file scan comes up with a false positive
  38. for text.
  39.  
  40. The cited material shows the many available workarounds.  The simplest one,
  41. if you want to control the transfer mode yourself is, is:
  42.  
  43.   SET TRANSFER MODE MANUAL
  44.  
  45. and then use SEND /BINARY and SEND /TEXT.  Other options include using
  46. filenamename associations instead of scanning the file's content, and
  47. increasing the length of the scan.
  48.  
  49. - Frank